import request from "../../../utils/request";
import { helpPoorData, helpPoorResponseData, operateHelpPoorData } from "./type";
enum API {
    // 扶贫信息分页接口 POST
    GETHELPPOORINFO_URL = '/helpPoorInfo/selectHelpPoorInfoPage',
    // 新增 编辑 POST
    OPERATEHELPPOORINFO_URL = '/helpPoorInfo/helpPoorInfoAdit',
    // 删除 POST
    DELETEHELPPOORINFO_URL = '/helpPoorInfo/helpPoorInfoDel'

}
export const reqGetHelpPoorInfo = (data: helpPoorData) => request.post<any, helpPoorResponseData>(API.GETHELPPOORINFO_URL, data)
export const reqOperateHelpPoorInfo = (data: operateHelpPoorData) => request.post<any, any>(API.OPERATEHELPPOORINFO_URL, data)
export const reqDeleteHelpPoorInfo = (data: operateHelpPoorData) => request.post<any, any>(API.DELETEHELPPOORINFO_URL, data)

